package com.woniuxy.cq.phrase3.controller;

import com.woniuxy.cq.phrase3.common.Result;
import com.woniuxy.cq.phrase3.dao.PlanMapper;
import com.woniuxy.cq.phrase3.entity.Plan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Daniel
 * @version 1.0.0
 * @ClassName PlanController
 * @Description TODO
 * @createTime 2020年09月09日 17:09:00
 */
@RestController
@Slf4j
public class PlanController {

    @Autowired
    private PlanMapper planMapper;

    @GetMapping("/plan/select")
    public Result select() {

        List<Plan> plan = planMapper.selectPlan();
        return Result.success(plan);
    }


}
